package com.example.toolproject.demo.service;

import com.example.toolproject.demo.domain.Answer;
import com.example.toolproject.demo.domain.Question;
import com.example.toolproject.demo.domain.User;
import com.example.toolproject.demo.util.ResultBean;

/**
 * @ClassName QuestionService
 * @Description TODO
 * @Author lvyongwei
 * @Date 2020-10-26 10:05
 **/
public interface QuestionService {

    ResultBean addQuestion(Question question, Integer id);

    ResultBean addAnswer(Answer answer, Integer id);

    ResultBean getAnswer(Integer questionId);

    ResultBean deleteAnswer(Integer answerId, User user);

    ResultBean deleteQuestion(Integer questionId);

    ResultBean getQuestion(Integer pageNum, Integer pageSize, String username, String school, String question);

}
